<!DOCTYPE html>
<html lang="">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta http-equiv="Pragma"content="no-cache"> 
    <meta http-equiv="Expires" content="0">
    <meta http-equiv="Cache-control" content="no-cache,must-revalidate">
    <meta http-equiv="Cache" content="no-cache">
    <meta name="viewport" content="width=device-width,initial-scale=1.0, maximum-scale=1.0, user-scalable=0">

    <link rel="icon" href="<%= BASE_URL %>favicon.ico">
    <title>庭秘密</title>
   
    <% if (process.env.VUE_APP_SERVE_URL == 'https://platform.tinghao123.com') { %>
      <!-- 百度统计集成 -->
      <script>
        var _hmt = _hmt || [];
        (function() {
          var hm = document.createElement("script");
          hm.src = "https://hm.baidu.com/hm.js?<%= process.env.VUE_APP_BAIDU_TOEKN%>";
          var s = document.getElementsByTagName("script")[0]; 
          s.parentNode.insertBefore(hm, s);
        })();
      </script>
    <% } %>
    <% if (process.env.NODE_ENV !== 'development') { %>
        <meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests">
        <link
          rel="stylesheet"
          href="<%= process.env.VUE_APP_TST_RESOURCE%>/new-tst-libs/vant.min.css"
        />
        <!-- 使用CDN加速的JS文件，配置在vue.config.js下 -->
        <script src="<%= process.env.VUE_APP_TST_RESOURCE%>/new-tst-libs/vue.runtime.global.prod.js"></script>
        <script src="<%= process.env.VUE_APP_TST_RESOURCE%>/new-tst-libs/vant.min.js"></script>
        <script src="<%= process.env.VUE_APP_TST_RESOURCE%>/new-tst-libs/axios.min.js"></script>
        <script src="<%= process.env.VUE_APP_TST_RESOURCE%>/new-tst-libs/vue-i18n.global.prod.js"></script>
        <script src="<%= process.env.VUE_APP_TST_RESOURCE%>/new-tst-libs/vue-router.global.prod.js"></script>
      <% } %>
      <script>
        //是否加载微信小程序插件
        (function() {
          if(window.location.href.indexOf('isWxapp=true') != -1){
            var ele = document.createElement("script");
            ele.src = "<%= process.env.VUE_APP_TST_RESOURCE%>/new-tst-libs/jweixin-1.3.2.js";
            var s = document.getElementsByTagName("script")[0]; 
            s.parentNode.insertBefore(ele, s);
          }
        })();
      </script>
      
      <script>
        //ios 11系统兼容处理
        if (!window.flutter_inappwebview) {
          window.flutter_inappwebview = {
            callHandler: function() {
            var _callHandlerID = setTimeout(function(){});
              if(!window.webkit) return new Promise((resolve => {
                
              }))
              window.webkit.messageHandlers['callHandler'].postMessage( {'handlerName': arguments[0], 
              '_callHandlerID': _callHandlerID, 'args': JSON.stringify(Array.prototype.slice.call(arguments, 1))} );
              return new Promise(function(resolve, reject) {
                window.flutter_inappwebview[_callHandlerID] = resolve;
                });
            }
          }
          window.WebViewJavascriptBridge = window.flutter_inappwebview 
        }
      </script>

  </head>
  <body>
    <noscript>
      <strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
    </noscript>
    <div id="app" style="font-size:14px;">
      <!-- <div class="loading-con-preload" style=" display: flex;justify-content: center;align-items: center;height: 100vw;">
        <img style="width: 30px;" src="https://appstore.tinghao123.com/assets/images/public/loading.gif" alt="" class="i">
      </div> -->
    </div>
    <!-- built files will be auto injected -->
  </body>
  
</html>
<style>
  html,body,#app {min-height: 100%;}
</style>